#include <stdio.h>
#include <time.h>
#include "random.h"

// Set time seed!
void init_seed(void){
    srand((unsigned) time(NULL));
    printf("Seed initialized!");
}
double random_float(void)
{
    return rand() / (RAND_MAX * 1.0);
}

int64_t random_integer(int64_t min, int64_t max)
{
    return rand() % (max - min + 1) + min;
}

double uniform(double low, double high)
{   
    return random_float() * (high - low) + low;
}
